package me.zhengjie.modules.vip.service;

import me.zhengjie.modules.vip.domain.RechargeRecord;
import me.zhengjie.modules.vip.domain.vo.RechargeRecordQueryCriteria;
import java.util.List;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import me.zhengjie.utils.PageResult;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

public interface RechargeRecordService {

    /**
     * 查询数据分页
     * @param criteria 条件
     * @param page 分页参数
     * @return PageResult
     */
    PageResult<RechargeRecord> queryAll(RechargeRecordQueryCriteria criteria, Page<Object> page);

    /**
     * 查询所有数据不分页
     * @param criteria 条件参数
     * @return List<RechargeRecord>
     */
    List<RechargeRecord> queryAll(RechargeRecordQueryCriteria criteria);

    /**
     * 创建
     * @param resources /
     */
    void create(RechargeRecord resources);

    /**
     * 导出数据
     * @param all 待导出的数据
     * @param response /
     * @throws IOException /
     */
    void download(List<RechargeRecord> all, HttpServletResponse response) throws IOException;

    void revoke(Long recordId);
}